package com.yeyks.account.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 子账号操作记录
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SubAccountOperationRecord对象", description="子账号操作记录")
public class SubAccountOperationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作的子账号")
    @TableField("operator")
    private Integer operator;

    @ApiModelProperty(value = "操作类型:1-酒店佣金提现-cash_out_hotel")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "业务id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "参数json")
    @TableField("parameter_json")
    private String parameterJson;

    @ApiModelProperty(value = "操作信息")
    @TableField("message")
    private String message;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String OPERATOR = "operator";

    public static final String TYPE = "type";

    public static final String BUSINESS_ID = "business_id";

    public static final String PARAMETER_JSON = "parameter_json";

    public static final String MESSAGE = "message";

    public static final String CREATE_TIME = "create_time";

}
